﻿using System;
using System.Runtime.Serialization;
using Blackbird.Common.Properties;

namespace Blackbird.Common.Exceptions
{
    [Serializable]
    public class TexturePoolNotFoundException : Exception
    {
        public TexturePoolNotFoundException()
        {
        }

        public TexturePoolNotFoundException(string message) : base(message)
        {
        }

        public TexturePoolNotFoundException(string message, Exception inner) : base(message, inner)
        {
        }

        protected TexturePoolNotFoundException(
            SerializationInfo info,
            StreamingContext context)
            : base(info, context)
        {
        }

        public static void Throw()
        {
            throw new TexturePoolNotFoundException(Resources.TexturePoolNotFoundExceptionMessage);
        }
    }
}